package br.uem.din.sd.jogodistribuido.clienteservidor;


import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;


public class Cliente {
	public Cliente() {
	}

	public static void main(String[] args) {
		try {
			ServicoRemoto servicoRemoto = (ServicoRemoto) Naming.lookup("rmi://localhost:1099/ServicoRemoto");
			servicoRemoto.mensagemServidor("Esta mensagem aparecera no Servidor!");
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (RemoteException e) {
			e.printStackTrace();
		} catch (NotBoundException e) {
			e.printStackTrace();
		}
	}
}
